 define(["jquery"],function ($) {
  return {
    choList(){

      $(document).on("click",".Choicesnext", () => {
        Choices()
      })
    
      function Choices(){
        $(".Choices_banner ul").animate({marginLeft:"-1184px"},600, () => {
          $(".Choices_banner ul>li").eq(0).appendTo($(".Choices_banner ul"));
          $(".Choices_banner ul").css('marginLeft','0px');
        });
        $(".Choicestel ul").css('marginLeft','-1184px');
        $(".Choicestel ul>li").eq(0).appendTo($(".Choicestel ul"));
        $(".Choicestel ul").css({marginLeft:"0px"},600);
      }
    
      let tabChange = setInterval(Choices,3000);
      //鼠标悬停暂停切换
      $(document).on("mouseover",".Choicesnext",() =>{
        clearInterval(tabChange);
      });
      $(document).on("mouseout",".Choicesnext",() =>{
        tabChange = setInterval(Choices,3000);
      });
    }
  }
})

